package ernie.pages;

/**
 * @author Filip Lindqvist <buggfille@gmail.com>
 * @created 2:07:12 PM - Nov 16, 2011
 */
public class Error404Page implements Page {

    @Override
    public String getContent() {
        StringBuilder sb = new StringBuilder();
        sb.append("<html>");

        sb.append("<head>");
        sb.append("<title>").append("Page Not Found!").append("</title>");
        sb.append("</head>");

        sb.append("<body>");
        sb.append("<h1>Error 404 - The requested page was not found</h1>");
        sb.append("<br>");
        sb.append("Please review the url");
        sb.append("</body>");

        sb.append("</html>");

        return sb.toString();
    }

    @Override
    public String file() {
        throw new UnsupportedOperationException("Not supported.");
    }
}
